home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6990 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: oberon.nbg.sub.org!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <4ju349$r1e@sparky.navsea.navy.mil> <4jvrqs$hk0@btmpjg.god.bel.alcatel.be> <slN3BCS00iWZ0_8G1R@andrew.cmu.edu> <316533DF.5BFD@bat710.univ-lyon1.fr>
  4. From: "hartmut Goebel" <hartmut@oberon.nbg.sub.org>
  5. Date: Fri, 05 Apr 1996 18:37:42 +0100
  6. X-NewsReader: IntuiNews 1.3b Beta 12 (23.3.96)
  7. Subject: Re: Messages vs. Semaphores for external clocking
  8. Message-ID: <1779969@oberon.nbg.sub.org>
  9.  
  10. Laurent GIROUD (milu28@bat710.univ-lyon1.fr) schrieb:
  11.  
  12.  >   Of course but you must not forget something -> in order to be sure
  13.  >that
  14.  >the semaphore you are just refering to in your program is valid  you
  15.  >actually HAVE to FindName() it before and then to acces it in an atomic
  16.  >operation thus needing to embrace the two instructions (FindName +
  17.  >ObtainSemaphore) in a Forbid()/Permit() pair...
  18.  
  19. No! This is only necessary if the Semaphore can go away anytime. If you
  20. implement some protkoll using something like client-registration, this can
  21. not happen. Thus the Semaphore will stay vaild until the clients says goodby,
  22. thus no FindName() needed everytime, thus no Forbit/Permit.
  23.  
  24.  >  This could be added to "The OS improvement list" :) ...
  25.  
  26. Unnecessary overhead!
  27.  
  28.  >Laurent Giroud
  29.  
  30. +++hartmut
  31.  
  32. | hartmut Goebel      | hartmut@oberon.nbg.sub.org   //  |
  33. | Software Manufactur | Essich@irc                 \X/   |
  34.